Optimal. Leaf size=28 \[ \frac{\tan ^3(c+d x)}{3 d}-\frac{\tan (c+d x)}{d}+x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.015247, antiderivative size = 28, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {3473, 8} \[ \frac{\tan ^3(c+d x)}{3 d}-\frac{\tan (c+d x)}{d}+x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3473
Rule 8
Rubi steps
\begin{align*} \int \tan ^4(c+d x) \, dx &=\frac{\tan ^3(c+d x)}{3 d}-\int \tan ^2(c+d x) \, dx\\ &=-\frac{\tan (c+d x)}{d}+\frac{\tan ^3(c+d x)}{3 d}+\int 1 \, dx\\ &=x-\frac{\tan (c+d x)}{d}+\frac{\tan ^3(c+d x)}{3 d}\\ \end{align*}
Mathematica [A] time = 0.0109749, size = 38, normalized size = 1.36 \[ \frac{\tan ^3(c+d x)}{3 d}+\frac{\tan ^{-1}(\tan (c+d x))}{d}-\frac{\tan (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 35, normalized size = 1.3 \begin{align*}{\frac{ \left ( \tan \left ( dx+c \right ) \right ) ^{3}}{3\,d}}-{\frac{\tan \left ( dx+c \right ) }{d}}+{\frac{dx+c}{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 2.72585, size = 39, normalized size = 1.39 \begin{align*} \frac{\tan \left (d x + c\right )^{3} + 3 \, d x + 3 \, c - 3 \, \tan \left (d x + c\right )}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.80023, size = 66, normalized size = 2.36 \begin{align*} \frac{\tan \left (d x + c\right )^{3} + 3 \, d x - 3 \, \tan \left (d x + c\right )}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.290155, size = 27, normalized size = 0.96 \begin{align*} \begin{cases} x + \frac{\tan ^{3}{\left (c + d x \right )}}{3 d} - \frac{\tan{\left (c + d x \right )}}{d} & \text{for}\: d \neq 0 \\x \tan ^{4}{\left (c \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 2.38089, size = 790, normalized size = 28.21 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]